<div class="row">
  <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
     <div class="span6">
    <h3>增加反馈信息</h3>
    <form action="/<*$controller*>/addtransfer" method="post"   name="form1" class="form-horizontal"  onSubmit="return checkform()">    
     <div class="control-group"> 
        <label class="control-label" for="version_no">选择要转的班级</label>
        <div class="controls">
         <ul class='span6'>
          <*if $result*>
          <*foreach from=$result item=a key =key name=foo*> 
             <li class='span2' style="list-style:none"> 
              <*if $classid!=$a.classid*>
              <label class="radio">
      			  <input type="radio" value="<*$a.classid*>"  name="uid[]" >  <*$a.classname*>
    		  </label>
              <*/if*> 
             </li>
          <*/foreach*>
          <*else*>
         <span style="color:red"> 请选择班级信息！</span>
          <*/if*>
          </ul>
          </div>
        </div>  
        <div class="form-actions"> 
         <button class="btn btn-large  btn-success" type="submit"  >提交</button>
          <input type="hidden"  value="<*$studentid*>"  name="studentid">
          <input type="hidden"  value="<*$classid*>"  name="classid">
          <input type="hidden"  value="<*$groupid*>"  name="groupid">  
          <input type="hidden"  value="<*$studentname*>"  name="studentname">  
         <button class="btn btn-large " type="button"  onclick="history.back()" >返回</button> 
      </div>  
     
     </form>
 
</div>
<script type="text/javascript">
 function checkform(){
	  var question_type = document.getElementsByName('uid[]');  
	 
	   var  q_type='';
	   for( i =0 ; i<question_type.length; i++ )
  		{
 			if( question_type[i].checked==true ){
 				 
 				var  q_type=question_type[i].value;
 				 
 				} 
   		}
	 if(q_type<=0){
		 alert('请选择要转入的班级');
		return  false;
		 } 
	 
	 } 
</script>
 